#include "debug.h"

Debug::Debug( QTextEdit *_te ) {
    te = _te ;
}

void Debug::writeBuffer(const QString &str) {
    buffer += " " + str.toStdString() ;
}

void Debug::clearBuffer() {
    buffer = "" ;
}

void Debug::writeQWidget() {
    te->insertPlainText( QString( buffer.c_str() ) ) ;
}
